This way the structure of private tmp directories is left intact, while the
(aging) content of such directories is allowed to be removed.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name data-more-precise-prune-pattern-for-tmpfiles.patch
D! /tmp/snap-private-tmp 0700 root root -
-# make sure the snap's private tmp folders are
-# not reaped by age if configured by the system (noble+)
-# this will still let the contents be reaped, just not the
-# folder itself
+# Allow removing content in the private tmp folders without affecting the
+# architectural structure of the folders themselves.
+X /tmp/snap-private-tmp
X /tmp/snap-private-tmp/*/tmp
+x /tmp/snap-private-tmp/*/tmp/.snap